/**
 * 项目名：	Rumba Plan
 * 
 * 版权所有(C)，上海海鼎信息工程股份有限公司，2006，所有权利保留。
 * 
 * 文件名：	CUser.java
 * 模块说明：	
 * 修改历史：
 * 2006-8-20 - lxm - 创建。
 */
package com.hd123.rumba.user;

import com.hd123.rumba.cartridge.FVRumbaSystemCommon;
import com.hd123.rumba.runtime.CBaseEntity;
import com.hd123.rumba.user.biz.BUser;
import com.hd123.rumba.util.HashMap2;

/**
 * 用户 | 常量类
 * 
 * @author lxm
 * @see IUser
 * 
 */
public class CUser extends CBaseEntity {

  public static String CAPTION_CLASS = "用户";
  public static String CAPTION_USER = "用户";

  /** 构件包前缀 */
  public static final String FUNCV_PREFIX = FVRumbaSystemCommon.FUNCV_PREFIX;

  /** 状态取值 */
  public static final Integer VALUE_STATE_NORMAL = new Integer(0);
  public static String CAPTION_STATE_NORMAL = "正常";
  public static final Integer VALUE_STATE_DELETED = new Integer(999);
  public static String CAPTION_STATE_DELETED = "已删除";
  public static HashMap2 STATEMAP = new HashMap2().put2(VALUE_STATE_NORMAL, CAPTION_STATE_NORMAL)
      .put2(VALUE_STATE_DELETED, CAPTION_STATE_DELETED);

  /** @see IUser#getLogin() */
  public static String CAPTION_LOGIN = "登录名";
  public static final int LENGTH_LOGIN = 16;
  public static final String PERMISSION_FA_LOGIN = FUNCV_PREFIX + ".用户.字段.登录名";

  /** @see IUser#getPassword() */
  public static String CAPTION_PASSWORD = "口令";
  public static final int LENGTH_PASSWORD = 255;
  public static final String PERMISSION_FA_PASSWORD = FUNCV_PREFIX + ".用户.字段.口令";

  /** @see IUser#getOnline() */
  public static String CAPTION_ONLINE = "启用";
  public static final String PERMISSION_FA_ONLINE = FUNCV_PREFIX + ".用户.字段.启用";

  /** @see IUser#getValidFrom() */
  public static String CAPTION_VALIDFROM = "有效期从";
  public static final String PERMISSION_FA_VALIDFROM = FUNCV_PREFIX + ".用户.字段.有效期从";

  /** @see IUser#getValidTo() */
  public static String CAPTION_VALIDTO = "有效期到";
  public static final String PERMISSION_FA_VALIDTO = FUNCV_PREFIX + ".用户.字段.有效期到";

  /** @see IUser#getRemark() */
  public static String CAPTION_REMARK = "备注";
  public static final int LENGTH_REMARK = 200;
  public static final String PERMISSION_FA_REMARK = FUNCV_PREFIX + ".用户.字段.备注";

  /** @see IUser#getName() */
  public static String CAPTION_NAME = "全名";
  public static final int LENGTH_NAME = 20;
  public static final String PERMISSION_FA_NAME = FUNCV_PREFIX + ".用户.字段.全名";

  /** @see IUser#getProfile() */
  public static final String CAPTION_PROFILE = "资料";

  /** @see IUser#getDepartment() */
  public static final String CAPTION_DEPARTMENT = "部门";

  /** @see IUser#getImage() */
  public static final String CAPTION_IMAGE = "图片";

  public static String CAPTION_USETOKEN = "是否启用令牌登录";
  public static final String PERMISSION_FA_USETOKEN = FUNCV_PREFIX + ".用户.字段.是否启用令牌登录";

  public static String CAPTION_TOKENSN = "令牌序列号";
  public static final int LENGTH_TOKENSN = 8;
  public static final String PERMISSION_FA_TOKENSN = FUNCV_PREFIX + ".用户.字段.令牌序列号";

  public static String CAPTION_TOKENPIN = "令牌PIN码";
  public static final int LENGTH_TOKENPIN = 6;
  public static final String PERMISSION_FA_TOKENPIN = FUNCV_PREFIX + ".用户.字段.令牌PIN码";

  public static String CAPTION_ROLES = "拥有的角色";
  public static final String PERMISSION_FA_ROLES = FUNCV_PREFIX + ".用户.字段.拥有的角色";
  public static String CAPTION_PERMISSIONS = "拥有的权限";
  public static final String PERMISSION_FA_PERMISSIONS = FUNCV_PREFIX + ".用户.字段.拥有的权限";

  /** @see BUser#permCmds */
  public static String CAPTION_PERMCMDS = "权限修改指令";

  /** 系统默认用户——根域管理员之登录名 */
  public static final String VALUE_LOGIN_ROOT_ADMIN = "admin";
  /** 系统默认用户——根域管理员之全名 */
  public static final String VALUE_NAME_ROOT_ADMIN = "管理员用户";
  /** 系统默认用户——根域管理员之默认口令 */
  public static final String VALUE_PASSWORD_ROOT_ADMIN = "admin";

}
